package cn.net.sinodata.system.domain.vo;

import java.util.Date;

import cn.net.sinodata.common.translation.annotation.Translation;
import cn.net.sinodata.common.translation.constant.TransConstant;
import com.fasterxml.jackson.annotation.JsonFormat;
import cn.net.sinodata.system.domain.PmAccBankDeadline;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import cn.net.sinodata.common.excel.annotation.ExcelDictFormat;
import cn.net.sinodata.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 基础账户行截止时间管理视图对象 pm_acc_bank_deadline
 *
 * @author yinliangyun
 * @date 2025-10-30
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = PmAccBankDeadline.class)
public class PmAccBankDeadlineVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private String id;

    /**
     * 账户行号
     */
    @ExcelProperty(value = "账户行号")
    private String accountBankNo;

    /**
     * 账户行名
     */
    @ExcelProperty(value = "账户行名")
    private String accountBankName;

    /**
     * 是否默认账户行（Y-是 N-否）
     */
    @ExcelProperty(value = "是否默认账户行", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "Y=-是,N=-否")
    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, other = "is_default")
    private String isDefault;

    /**
     * 币种
     */
    @ExcelProperty(value = "币种")
    private String currencyType;

    /**
     * 清算方式
     */
    @ExcelProperty(value = "清算方式")
    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, other = "clearing_mode")
    private String clearingMode;

    /**
     * 是否夏令时（Y-是 N-否）
     */
    @ExcelProperty(value = "是否夏令时", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "Y=-是,N=-否")
    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, other = "is_summer_time")
    private String isSummerTime;

    /**
     * 夏令时开始时间
     */
    @ExcelProperty(value = "夏令时开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date stimeStarttime;

    /**
     * 夏令时截止时间
     */
    @ExcelProperty(value = "夏令时截止时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date stimeEndline;

    /**
     * 非夏令时截止时间点
     */
    @ExcelProperty(value = "非夏令时截止时间点")
    @JsonFormat(pattern = "HH:mm", timezone = "GMT+8")
    private Date nostimeDeadline;

    /**
     * 夏令时截止时间点
     */
    @ExcelProperty(value = "夏令时截止时间点")
    @JsonFormat(pattern = "HH:mm", timezone = "GMT+8")
    private Date stimeDeadline;

}
